using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_SPELLDISPELLOG_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();

            ulong VictimGuid = popGuid();         // Victim GUID
            ulong CasterGuid = popGuid();           // Caster GUID
            uint m_spellInfoId = ReadUInt32();                // Dispell spell id
            byte unka = ReadByte();                               // not used
            UInt32 count = ReadUInt32();                            // count
            for (int i = 0; i < count; i++)
            {
                UInt32 spellInfoId = ReadUInt32();              // Spell Id
                if (ClientBuild > 7561)
                {
                    byte unkb = ReadByte();                           // 0 - dispeled !=0 cleansed
                }
            }

            return Validate();
        }
    }
}
